package com.kingyun.gpsinspection.purificationservice.dao.mapper.iam.adm;


import com.kingyun.gpsinspection.purificationservice.facade.model.BootstrapSearchBean;
import com.kingyun.gpsinspection.purificationservice.facade.model.iam.adm.TrainingMaterial;

import java.util.List;
import java.util.Map;

public interface TrainingMaterialMapper {
    /**
     * 删除
     * @param trainingMaterialIds
     * @return
     */
    int deleteByPrimaryKey(String[] trainingMaterialIds);

    /**
     * 新增
     * @param record
     * @return
     */
    int insertSelective(TrainingMaterial record);

    /**
     * 根据id查询
     * @param trainingMaterialId
     * @return
     */
    TrainingMaterial selectByPrimaryKey(String trainingMaterialId);

    /**
     * 更新
     * @param record
     * @return
     */
    int updateByPrimaryKeySelective(TrainingMaterial record);

    /**
     * 列表查询
     * @param bootstrapSearchBean
     * @return
     */
    List<TrainingMaterial> queryList(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 总条数
     * @param bootstrapSearchBean
     * @return
     */
    Integer queryCount(BootstrapSearchBean bootstrapSearchBean);

    /**
     * 查询岗位
     * @param ids
     * @return
     */
    List<String> selectJobTypeByIds(String[] ids);

    /**
     * 根据名字查询培训材料
     * @param map
     * @return
     */
    List<TrainingMaterial> queryListByName(Map<String, Object> map);

    /**
     * 判断培训材料名是否存在
     * @param materialName 培训材料名
     * @return
     */
    int isExitByName(String materialName);
}